<script setup lang="ts">
import { useSlots } from 'vue'

const slots = useSlots()
defineExpose({
  getSlot(name = 'default') {
    return slots[name]
  }
})
</script>
<template>
  <slot />
</template>
